﻿var link_navtab = function (jo, options) {
    var attrobj = Utils.getAttrObject(jo, "navtab");
    var settings = $.extend({
        name: jo.attr("tip") || jo.attr("title") || jo.text(),
        url: jo.attr("href"),
        closeable: jo.attr("closeable"),
        frompointerid: mWindowPointer.id(),
        intent: jo.attr("intent")
    }, options, attrobj);

    mTabPanelContainerHelper.addTab(settings);
}